package com.example.game.hff;

import java.awt.Dimension;

import javax.swing.JFrame;

public class HffFrame extends JFrame implements Constants {
	
	
	private MainScreen screen;
	
	public HffFrame() {
		
		init();
		//윈도우 중앙에 프레임 배치
		setLocationRelativeTo(null);
	}
	

	public void init() {
		
		setTitle("Highway Fuckin Dog");
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Sound.load();
		Sound.play2("intro");
		
		
		screen = new MainScreen();
		
		screen.setFocusable(true);
		screen.setPreferredSize(new Dimension(SCREEN_WIDTH, SCREEN_HEIGHT));
		add(screen);
		pack();
		
		
		
		
	}
	


}
